x86/altp2m: add remaining support routines
authorEd White <edmund.h.white@intel.com>
Fri, 24 Jul 2015 11:36:15 +0000 (13:36 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 24 Jul 2015 11:36:15 +0000 (13:36 +0200)
commit1e939ef96fbb26fbbcb435891afb091d4f810ea3
treedc4a3f53a70880ff4b9557c3b0f445bf2950fa6b
parente1aae2f6ec52b7cb125416d417bde646141f4465
x86/altp2m: add remaining support routines

Add the remaining routines required to support enabling the alternate
p2m functionality.

Signed-off-by: Ed White <edmund.h.white@intel.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: George Dunlap <george.dunlap@eu.citrix.com>
Fix off-by-one in various checks against MAX_ALTP2M. Adjust error code
in p2m_destroy_altp2m_by_id(). Cosmetic adjustments.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Release-acked-by: Wei Liu <wei.liu2@citrix.com>
xen/arch/x86/hvm/hvm.c
xen/arch/x86/mm/p2m-ept.c
xen/arch/x86/mm/p2m.c
xen/include/asm-x86/p2m.h